<?php
Globals::requireController('Admin');
Globals::requireTable('Vipuser');

class VipsController extends AdminController
{
    protected $vipuserTable;
    
	public function __construct($config = null)
	{
		parent::__construct($config, true);
		$this->vipuserTable = new VipuserTable($config);
	}
	
	public function indexAction()
	{
	    $where = array();
	    $count = $this->vipuserTable->listCount($where);
	    $pageSize = 20;
	    $pageId	= $this->getIntParam('page');
	    $this->view->paging = $this->getPaging($count, $pageSize,$pageId);
	    $this->view->data = $this->vipuserTable->listPage($where, 'id DESC', $pageSize, $pageId);
	}
	
	
}
